﻿using 瞎敲2._0;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 瞎敲
{
    class Program
    {
        static void Main(string[] args)
        {
            cat cat = new cat();
            Console.WriteLine("        猫");
            Console.WriteLine("");
            cat.leg();
            cat.eat();
            cat.sleep();
            cat.nightVision();
            cat.play();
            Console.WriteLine();

            lion lion = new lion();
            Console.WriteLine("        狮子");
            Console.WriteLine("");
            lion.leg();
            lion.eat();
            lion.sleep();
            lion.nightVision();
            lion.status();
            Console.WriteLine();

            wildGoose wildGoose = new wildGoose();
            Console.WriteLine("        大雁");
            Console.WriteLine("");
            wildGoose.leg();
            wildGoose.eat();
            wildGoose.sleep();
            wildGoose.fly();
            wildGoose.introduce();

            magpie magpie = new magpie();
            Console.WriteLine("        喜鹊");
            Console.WriteLine("");
            magpie.leg();
            magpie.eat();
            magpie.sleep();
            magpie.fly();
            magpie.introduce();
        }
    }
    class animalia//动物类
    {
       
        public virtual void leg() 
        {
            Console.WriteLine("我有四条腿");
        }
        public void eat()
        {
            Console.WriteLine("吃饱喝好，一路走好");
        }
        public void sleep()
        {
            Console.WriteLine("睡觉睡到自然醒");
        }
    }
    class Felidae:animalia//猫科
    {
        public void nightVision()
        {
            Console.WriteLine("没想到吧，我晚上也看得很清楚");
        }
        public void climbTree()
        {
            Console.WriteLine("爬树我是砖业的");
        }
    }
    class birds:animalia//鸟类
    {
        public void fly()
        {
            Console.WriteLine("起飞 飞 飞 飞 飞 飞");
        }
    }

}
